package com.skmusic.app;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.skmusic.sk_share.share.ShareManager;

/**
 * Created by smark on 2019/12/10.
 * 邮箱：smarkwzp@163.com
 */
public class MyApp extends Application {

    private static MyApp mApplication = null;

    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
        //视频SDK初始化
//        VideoHelper.init(this);
        //音频SDK初始化
//        AudioHelper.init(this);
        //分享SDK初始化
        ShareManager.initSDK(this);
        //更新组件下载
//        UpdateHelper.init(this);
//        ARouter初始化
        ARouter.init(this);
    }


//    @Override
//    protected RePluginConfig createConfig() {
//        RePluginConfig config = super.createConfig();
//        config.setUseHostClassIfNotFound(true);
//        return config;
//    }

    public static MyApp getInstance() {
        return mApplication;
    }
}
